package com.dailyblue.java.spring.boot.mvc.mybatis.mapper;

import com.dailyblue.java.spring.boot.commons.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select id,nickname,userImg from user where id=#{id}")
    User findUserById(int id);

    @Select("select * from user where usercode=#{code}")
    User login(String code);
}
